(function(){'use strict';var n,aa=typeof Object.create=="function"?Object.create:function(a){function b(){} b.prototype=a;return new b},p=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a; a[b]=c.value;return a}; function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b>>0)+"_",h=0;return b}); r("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");p(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(fa(this))}}); return a}); function ha(a){a={next:a};a[Symbol.iterator]=function(){return this}; return a} r("Promise",function(a){function b(f){this.h=0;this.i=void 0;this.g=[];this.v=!1;var e=this.j();try{f(e.resolve,e.reject)}catch(g){e.reject(g)}} function c(){this.g=null} function d(f){return f instanceof b?f:new b(function(e){e(f)})} if(a)return a;c.prototype.h=function(f){if(this.g==null){this.g=[];var e=this;this.i(function(){e.l()})}this.g.push(f)}; var h=q.setTimeout;c.prototype.i=function(f){h(f,0)}; c.prototype.l=function(){for(;this.g&&this.g.length;){var f=this.g;this.g=[];for(var e=0;e>>0),ka=0;function D(a,b){a=a.split(".");for(var c=A,d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b} function la(a,b){function c(){} c.prototype=b.prototype;a.H=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.W=function(d,h,k){for(var f=Array(arguments.length-2),e=2;e=0&&Array.prototype.splice.call(a,b,1)} function oa(a){return Array.prototype.concat.apply([],arguments)} function pa(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d0){this.h--;var a=this.g;this.g=a.next;a.next=null}else a=this.i();return a};function ra(a){A.setTimeout(function(){throw a;},0)} ;function F(){this.h=this.g=null} F.prototype.add=function(a,b){var c=sa.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}; F.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.h=null),a.next=null);return a}; var sa=new qa(function(){return new G},function(a){return a.reset()}); function G(){this.next=this.scope=this.g=null} G.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null}; G.prototype.reset=function(){this.next=this.scope=this.g=null};var H,I=!1,ta=new F;function ua(a){H||va();I||(H(),I=!0);ta.add(a,void 0)} function va(){var a=Promise.resolve(void 0);H=function(){a.then(wa)}} function wa(){for(var a;a=ta.remove();){try{a.g.call(a.scope)}catch(c){ra(c)}var b=sa;b.j(a);b.h<100&&(b.h++,a.next=b.g,b.g=a)}I=!1} ;function J(){this.i=this.i;this.j=this.j} J.prototype.i=!1;J.prototype.dispose=function(){this.i||(this.i=!0,this.D())}; J.prototype[Symbol.dispose]=function(){this.dispose()}; J.prototype.addOnDisposeCallback=function(a,b){this.i?b!==void 0?a.call(b):a():(this.j||(this.j=[]),b&&(a=a.bind(b)),this.j.push(a))}; J.prototype.D=function(){if(this.j)for(;this.j.length;)this.j.shift()()};function xa(a){var b={},c;for(c in a)b[c]=a[c];return b} ;var ya=/&/g,za=//g,Ba=/"/g,Ca=/'/g,Da=/\x00/g,Ea=/[\x00&<>"']/;/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ function K(a){this.g=a} K.prototype.toString=function(){return this.g}; var Fa=new K("about:invalid#zClosurez");function L(a){this.P=a} function M(a){return new L(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})} var Ga=[M("data"),M("http"),M("https"),M("mailto"),M("ftp"),new L(function(a){return/^[^:]*([/?#]|$)/.test(a)})],Ha=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Ia={V:0,T:1,U:2,0:"FORMATTED_HTML_CONTENT",1:"EMBEDDED_INTERNAL_CONTENT",2:"EMBEDDED_TRUSTED_EXTERNAL_CONTENT"};function N(a,b){b=Error.call(this,a+" cannot be used with intent "+Ia[b]);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.type=a;this.name="TypeCannotBeUsedWithIframeIntentError"} var O=Error;N.prototype=aa(O.prototype);N.prototype.constructor=N;if(ea)ea(N,O);else for(var R in O)if(R!="prototype")if(Object.defineProperties){var Ja=Object.getOwnPropertyDescriptor(O,R);Ja&&Object.defineProperty(N,R,Ja)}else N[R]=O[R];N.H=O.prototype;function Ka(a){Ea.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(ya,"&")),a.indexOf("<")!=-1&&(a=a.replace(za,"<")),a.indexOf(">")!=-1&&(a=a.replace(Aa,">")),a.indexOf('"')!=-1&&(a=a.replace(Ba,""")),a.indexOf("'")!=-1&&(a=a.replace(Ca,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(Da,"�")));return a} ;function S(a){J.call(this);this.v=1;this.l=[];this.o=0;this.g=[];this.h={};this.A=!!a} la(S,J);n=S.prototype;n.subscribe=function(a,b,c){var d=this.h[a];d||(d=this.h[a]=[]);var h=this.v;this.g[h]=a;this.g[h+1]=b;this.g[h+2]=c;this.v=h+3;d.push(h);return h}; n.unsubscribe=function(a,b,c){if(a=this.h[a]){var d=this.g;if(a=a.find(function(h){return d[h+1]==b&&d[h+2]==c}))return this.F(a)}return!1}; n.F=function(a){var b=this.g[a];if(b){var c=this.h[b];this.o!=0?(this.l.push(a),this.g[a+1]=function(){}):(c&&na(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b}; n.G=function(a,b){var c=this.h[a];if(c){var d=Array(arguments.length-1),h=arguments.length,k;for(k=1;k0&&this.o==0)for(;c=this.l.pop();)this.F(c)}}return k!=0}return!1}; function La(a,b,c){ua(function(){a.apply(b,c)})} n.clear=function(a){if(a){var b=this.h[a];b&&(b.forEach(this.F,this),delete this.h[a])}else this.g.length=0,this.h={}}; n.D=function(){S.H.D.call(this);this.clear();this.l.length=0};var Ma=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Na(a){var b=a.match(Ma);a=b[1];var c=b[2],d=b[3];b=b[4];var h="";a&&(h+=a+":");d&&(h+="//",c&&(h+=c+"@"),h+=d,b&&(h+=":"+b));return h} function Oa(a,b,c){if(Array.isArray(b))for(var d=0;d0||console&&console.warn&&console.warn(c);else throw c;}else console&&console.warn&&console.warn("The YouTube player is not attached to the DOM. API calls should be made after the onReady event. See more: https://developers.google.com/youtube/iframe_api_reference#Events")}; function Xa(a){if((a=String(Y(a,"videoId")))&&(a.length!==11||!a.match(/^[a-zA-Z0-9\-_]+$/)))throw Error("Invalid video id");return"/embed/"+a} function Wa(a,b){var c=Y(a,"playerVars");c?c=xa(c):c={};window!==window.top&&document.referrer&&(c.widget_referrer=document.referrer.substring(0,256));var d=Y(a,"embedConfig");if(d){if(B(d))try{d=JSON.stringify(d)}catch(h){console.error("Invalid embed config JSON",h)}c.embed_config=d}c.enablejsapi=window.postMessage?1:0;window.location.host&&(c.origin=window.location.protocol+"//"+window.location.host);c.widgetid=a.id;window.location.href&&E(["debugjs","debugcss"],function(h){var k=window.location.href; var f=k.search(Pa);b:{var e=0;for(var g=h.length;(e=k.indexOf(h,e))>=0&&ef)g=f;e+=h.length+1;k=decodeURIComponent(k.slice(e,g!==-1?g:0).replace(/\+/g," "))}k!==null&&(c[h]=k)}); window.location.href&&(c.forigin=window.location.href);a=window.location.ancestorOrigins;c.aoriginsup=a===void 0?0:1;a&&a.length>0&&(c.aorigins=Array.from(a).join(","));window.document.referrer&&(c.gporigin=window.document.referrer);b&&(c.vf=db(b));return c} function eb(a,b){if(B(b)){for(var c in b)b.hasOwnProperty(c)&&(a.playerInfo[c]=b[c]);a.playerInfo.hasOwnProperty("videoData")&&(b=a.playerInfo.videoData,b.hasOwnProperty("title")&&b.title?(b=b.title,b!==a.videoTitle&&(a.videoTitle=b,a.g.setAttribute("title",b))):(a.videoTitle="",a.g.setAttribute("title","YouTube "+Y(a,"title"))))}} function fb(a,b){b=x(b);for(var c=b.next(),d={};!c.done;d={m:void 0},c=b.next())d.m=c.value,a[d.m]||(d.m==="getCurrentTime"?a[d.m]=function(){var h=this.playerInfo.currentTime;if(this.playerInfo.playerState===1){var k=(Date.now()/1E3-this.playerInfo.currentTimeLastUpdated_)*this.playerInfo.playbackRate;k>0&&(h+=Math.min(k,1))}return h}:Ta(d.m)?a[d.m]=function(h){return function(){this.playerInfo={}; this.u={};ab(this,h.m,arguments);return this}}(d):Ua(d.m)?a[d.m]=function(h){return function(){var k=h.m,f=0; k.search("get")===0?f=3:k.search("is")===0&&(f=2);return this.playerInfo[k.charAt(f).toLowerCase()+k.substring(f+1)]}}(d):a[d.m]=function(h){return function(){ab(this,h.m,arguments); return this}}(d))} n.getVideoEmbedCode=function(){var a=""+Y(this,"host")+Xa(this),b=Number(Y(this,"width")),c=Number(Y(this,"height"));if(isNaN(b)||isNaN(c))throw Error("Invalid width or height property");b=Math.floor(b);c=Math.floor(c);var d=this.videoTitle;a=Ka(a);d=Ka(d!=null?d:"YouTube video player");return'')}; n.getOptions=function(a){return this.u.namespaces?a?this.u[a]?this.u[a].options||[]:[]:this.u.namespaces||[]:[]}; n.getOption=function(a,b){if(this.u.namespaces&&a&&b&&this.u[a])return this.u[a][b]}; function Y(a,b){a=[a.options,window.YTConfig||{}];for(var c=0;c